package com.yc.base.dao;

import com.yc.base.model.TSUser;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends BaseRepository<TSUser, String> {
	/*@Query("select g from TSUser g where g.id=:id")
	public abstract List<TSUser> findByGpsIP(@Param("id") String id);*/

	@Query(value = "from TSUser where id = ?1")
	public TSUser findCustomer(String id);

	//判断用户名是否存在
	public TSUser findByUsername(String username);


}
